package com.zhibang.sinocare.common.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class ZhibiaoVo implements Serializable {
    private static final long serialVersionUID = -8959525093024358206L;
    @TableId(value ="user_id" ,type = IdType.ASSIGN_ID)
    private Integer userId; //用户id
    private String name; //姓名
    private String sex; //性别
    private Integer age; //年龄
    private String idCard; //身份证号
    private String phone;  //联系电话
    private String roleName;//角色名
    private Integer status; //状态
    private Integer storeId; //药店id
    private String storeName; //药店名
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime; //创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime; //修改时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastTestTime; //最后检测时间


}
